/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-04-23 13:34:41
 * @LastEditTime : 2023-08-18 14:58:03
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Pages\Admin\PageType\DiyPages.jsx
 * @Description  :
 */

import { WeChatSetUp } from '../../../Common/Router/MenuNav/DiyList/WeChatSetUp'
import { BIMFinish } from '../../../Common/Router/MenuNav/DiyList/BIMFinish'
import { CameraVideo } from '../../../Common/Router/MenuNav/DiyList/CameraVideo'
import { WeChatHomeSetUp } from '../../../Common/Router/MenuNav/DiyList/WeChatHomeSetUp'
import { BCCenterPush } from '../../../Common/Router/MenuNav/DiyList/BCCenterPush'
import { WebTheme } from '../../../Common/Router/MenuNav/DiyList/WebTheme'
import { WebHomeSetUp } from '../../../Common/Router/MenuNav/DiyList/WebHomeSetUp'
import { PersonExaminations } from '../../../Common/Router/MenuNav/DiyList/PersonExaminations'
import { Workstation001 } from '../../../Common/Router/MenuNav/DiyList/Workstation001'
import { DiyForm } from '../../../Common/Router/MenuNav/DiyList/DiyForm'

import { PageTemplate } from '../../../Common/Router/MenuNav/DiyList/PageTemplate'
import { PageSetUp } from '../../../Common/Router/MenuNav/DiyList/PageSetUp'
import { Page } from '../../../Common/Router/MenuNav/DiyList/Page'
import { AIInstruction } from '../../../Common/Router/MenuNav/DiyList/AIInstruction'
import { AIType } from '../../../Common/Router/MenuNav/DiyList/AIType'
import { BasicProjectInformation } from '../../../Common/Router/MenuNav/DiyList/BasicProjectInformation'

const DiyPageList = {
    WeChatSetUp,
    BIMFinish,
    CameraVideo,
    WeChatHomeSetUp,
    BCCenterPush,
    WebTheme,
    WebHomeSetUp,
    PersonExaminations,
    Workstation001,
    DiyForm,
    PageTemplate,
    PageSetUp,
    Page,
    AIType,
    AIInstruction,
    BasicProjectInformation,
}

const DiyPages = ({ url, uuid }) => {
    console.log('DIY页面路径 - ', url)
    return (
        <div className="DiyPages">
            {(() => {
                const Template = DiyPageList[url]
                return <Template uuid={uuid} />
            })()}
        </div>
    )
}

export default DiyPages
